package com.ai.entity.exam;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author：xiaosheng
 * @Date：2024-07-02 13:47
 */
@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AnswerBO {

    @ApiModelProperty("考试id")
    private Integer id;

    @ApiModelProperty("考试名称")
    private String examTitle;


    @ApiModelProperty("答案")
    private List<answer> answerList;

    @Getter
    @Setter
    public static class answer {

        @ApiModelProperty("题目类型")
        private String type;

        @ApiModelProperty("每题的答案")
        private List<answerDetails> answerDetails;

        @Getter
        @Setter
        public static class answerDetails {
            @ApiModelProperty("题目Id")
            private Integer questionsId;

            @ApiModelProperty("用于记录判断题答案   0.正确  1.错误")
            private String judgementAnswer;

            @ApiModelProperty("答案选项Id")
            private List<Integer> respondAnswer;
        }
    }
}
